<template>
  <view class="content">
    <image class="logo" src="../static/logo.png"></image>
    <view>
      <text class="title">{{ title }}</text>
    </view>
    <el-button type="primary" @click="goToLogin">Hello</el-button>
  </view>
</template>

<script lang="ts">
import { Router } from 'uni-simple-router';
import Vue from "vue";
export default Vue.extend({
  data() {
    return {
      title: "Hello",
    };
  },
  onLoad() { },
  methods: {
    goToLogin() {
      console.log("goToLogin ....");
      // (this as any).$Router.push({name:'Login'})
      this.$Router.push({ path: "/login" });
    },
  },
});
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin: 200rpx auto 50rpx auto;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>
